<template>
  <web-view :src="url"></web-view>
</template>

<script>
  import {
    isEmpty,
  } from "@/common/util.js"
  export default {
    data() {
      return {
        url: ''
      };
    },
    onLoad(query) {
      uni.hideHomeButton()
      this.url = decodeURIComponent(query.url); // 解码URL参数
      if (isEmpty(this.url)) {
        uni.navigateBack()
      }
    }
  }
</script>

<style lang="scss">

</style>